//
//  AddStaffViewController.h
//  Spa
//
//  Created by PangPond on 14/1/2556.
//  Copyright (c) พ.ศ. 2556 innova. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DatabaseUtility.h"
#import "AddStaffFirstnameCell.h"
#import "AddStaffLastNameCell.h"
#import "AddStaffNickNameCell.h"
#import "AddStaffGenderCell.h"
#import "AddStaffBirtdayCell.h"
#import "AddStaffTelCell.h"
#import "AddStaffStatusCell.h"
#import "AddStaffAddressCell.h"
#import "AddStaffAbilityCell.h"

@interface AddStaffViewController : UIViewController<UITextFieldDelegate,UITableViewDataSource,UITableViewDelegate>{
    
}

@property(nonatomic,strong)DatabaseUtility *databaseUtility;
@property(nonatomic,strong)NSString * keyIf;
@property(nonatomic,strong)NSString * keyStaffFirstname;
@property(nonatomic,strong) IBOutlet UITableView *tableView;
-(IBAction)BackButton:(id)sender;
-(IBAction)SaveButton:(id)sender;
-(IBAction)btnb:(id)sender;
-(IBAction)dismissKeyboard:(id)sender;

//CellFirstname
@property(nonatomic,strong)IBOutlet AddStaffFirstnameCell *addStaffFirstnameCell;
@property(nonatomic,strong)IBOutlet UITextField *fieldFirstnameCell;

//Cell Lastname
@property(nonatomic,strong)IBOutlet AddStaffLastNameCell *addStaffLastNameCell;
@property(nonatomic,strong)IBOutlet UITextField *fieldLastnameCell;

//Cell NickName
@property(nonatomic,strong)IBOutlet AddStaffNickNameCell *addStaffNickNameCell;
@property(nonatomic,strong)IBOutlet UITextField *fieldNickNameCell;

//Cell Gender
@property(nonatomic,strong)IBOutlet AddStaffGenderCell *addStaffGenderCell;

//Cell Birtday
@property(nonatomic,strong)IBOutlet AddStaffBirtdayCell *addStaffBirtdayCell;
@property(nonatomic,strong)IBOutlet UITextField *fieldBirtdayCell;
@property(nonatomic,strong)IBOutlet UIButton *btnBirtday;

//Cell Tel
@property(nonatomic,strong)IBOutlet AddStaffTelCell *addStaffTelCell;
@property(nonatomic,strong)IBOutlet UITextField *fieldTelCell;

//Cell Status
@property(nonatomic,strong)IBOutlet AddStaffStatusCell *addStaffStatusCell;

//Cell Address
@property(nonatomic,strong)IBOutlet AddStaffAddressCell *addStaffAddressCell;
@property(nonatomic,strong)IBOutlet UITextField *fieldAddressCell;

//Cell Ability
@property(nonatomic,strong)IBOutlet AddStaffAbilityCell *addStaffAbilityCell;
@property(nonatomic,strong)IBOutlet UITextField *fieldAbilityCell;

-(BOOL)validate: (NSString *) candidate;
@end
